// mmo_game_server/battle/box2d_wrapper.cpp
#include "box2d_wrapper.h"

Box2DWrapper::Box2DWrapper() {
    b2Vec2 gravity(0.0f, -10.0f);
    world = new b2World(gravity);
}

Box2DWrapper::~Box2DWrapper() {
    delete world;
}

void Box2DWrapper::Step(float timeStep, int velocityIterations, int positionIterations) {
    world->Step(timeStep, velocityIterations, positionIterations);
}

b2World* Box2DWrapper::GetWorld() {
    return world;
}